<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>上传</title>
<jsp:include page="/pages/decorators/base.jsp"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/swfupload/core/swfupload.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/swfupload/core/plugins/SWFUpload.queue.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/swfupload/core/handlers2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/swfupload/core/fileprogress2.js"></script>
<script type="text/javascript">
$(function(){
	var settings = {
			flash_url :getProjName()+"/js/swfupload/core/SWFUpload.swf",
			upload_url: getProjName()+"/uploadfileabc.do",
			file_size_limit : "30 MB",
			file_types : "*.*",//控制文件后缀以;隔开
			file_types_description : "请选择文件",//提示文字
			file_upload_limit :20,//最大可上传
			file_queue_limit : 0,
			custom_settings : {
				progressTarget : "UploadProgress",//上传进度查看
				cancelButtonId : "btnCancel"//取消
				},
			debug: false,
			//button_image_url: "../../images/uploadbtn3.png",
			button_width: "62",
			button_height: "27",
			button_placeholder_id: "upload",//上传ID
			button_text: '上传文件',
			button_text_style: "",
			//post_params: {"userid":getuserid()},//附加上传参数
			button_text_left_padding: 5,button_text_top_padding: 5,
			file_queued_handler : fileQueued,file_queue_error_handler : fileQueueError,
			file_dialog_complete_handler : fileDialogComplete,
			upload_start_handler :function(){//上传时执行函数
			},
			upload_progress_handler : uploadProgress,upload_error_handler : uploadError,
			upload_success_handler : function(){//上传成功时执行函数
				
			},upload_complete_handler :uploadComplete,
			queue_complete_handler : function(){}
		};
	     new SWFUpload(settings);
	     alert("还没做好的。别着急");
});
</script>
</head>
<body>

<div style="width:100%; height:300px; border:1px #cdcdcd solid;">
<div style="width:100%;">
<span id="upload">上传</span>
<span id="btnCancel">取消</span> 
</div>
<div id="UploadProgress"></div>
</div>
</body>
</html>